<template>
  <uni-nav-bar title="赠品账户" color="#333" left-icon="left" @clickLeft="navBack" statusBar></uni-nav-bar>
  <environment></environment>
  <accountTop :type="'zeng'" ref="getAccount"></accountTop>
  <accountList :type="'zeng'" ref="CapitalDetails"></accountList>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { navBack } from '@/utils/navigator';
import accountTop from '@c/account/CouponTop.vue';
import accountList from '@c/account/accountList.vue';
import environment from '@c/pobulic/environment.vue';
import { onShow } from '@dcloudio/uni-app';
import { showLoading } from '@/utils/prompt';
const CapitalDetails = ref(null);
const getAccount = ref(null);
onShow(() => {
  showLoading('加载中...');
  setTimeout(() => {
    CapitalDetails.value.screenList();
    getAccount.value.getAccountInfo();
  }, 600);
});
</script>
